<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$meta_title}</title>
  
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="">
  <link rel="apple-touch-icon-precomposed" href="">
  <meta name="apple-mobile-web-app-title" content="{$meta_title}" />
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/admin.css">
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/mycss.css">
<script type="text/javascript" src="__PUBLIC__/libs/dingding/javascripts/zepto.min.js"></script>
  <script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-pc-api/2.6.2/index.js"></script>
</head>
<body>
<script type="text/javascript">

function taskInfo(content){
	DingTalkPC.device.notification.alert({
	    message: content,
	    title: "任务详情",//可传空
	    buttonName: "知道了",
	    onSuccess : function() {
	        /*回调*/
	    },
	    onFail : function(err) {}
	});
		
	
}


</script>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
        <li ><a href="#"><span><img alt="{$user_info.name}" src="{$user_info.avatar}"  style="display: block; margin: 0 auto; width: 80%;border-radius: 50%;"></span> {$user_info.name}</a></li>
        <li ><a href="/Home/Task/shouye"><span class="am-icon-home"></span> 首页</a></li>
        <li ><a href="/Home/Task/mytask"><span class="am-icon-file"></span> 任务</a></li>
        <li><a href="/Home/Task/dongtai"><span class="am-icon-table"></span> 动态</a></li>
        <li class="nav-active"><a href="/Home/Task/addnew"><span class="am-icon-pencil-square-o"></span> 新增</a></li>
       
      </ul>
      
    </div>
  </div>
  <!-- sidebar end -->

<!-- content start -->
<div class="admin-content">
  <div class="admin-content-body">
  <div class="am-cf am-my-title">{$meta_title}</div>
      		
      <div class="am-g">
      	<div class="am-u-sm-12">
      	<div class="am-bg-white table-body">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
            
            <tr>
            	<th >项目编号</th>
					<th >执行人</th>
					<th >任务内容</th>
					<th >发布人</th>
					<th >状态</th>
			
            </tr>
           
            </thead>
            <tbody>
            <volist name="task_list" id="vo" key="k" empty="没有子任务">
				<tr >
					
					<td >{$vo.projectid}</td>
					<td >{$vo.uid}</td>
					<td >{$vo.content|mb_substr=###,0,10,'utf-8'}....<a href="javascript:taskInfo('{$vo.content}');">详细</a></td>
					<td >{$vo.creater}</td>
					<td >
					<if condition="$vo.status eq 1 ">
						<span class="am-badge am-badge-warning">进行中</span>
						<a href="/Home/Task/finishTask/id/{$vo.id}/pid/{$pid}"><span class="am-badge am-badge-secondary">完成任务</span></a>
					<elseif condition="$vo.status eq 2 "/> 
						<span class="am-badge am-badge-danger">未开始</span>
						<a href="/Home/Task/starTask/id/{$vo.id}/pid/{$pid}"><span class="am-badge am-badge-secondary">开始任务</span></a>
					<elseif condition="$vo.status eq 3 "/> 
						<span class="am-badge am-badge-success">已完结</span>
					</if>
					
					</td>
					
				</tr>
				</volist>
                        
            
            </tbody>
          </table>
          </div>
        </div>
      </div>


  </div>

  
</div>
<!-- content end -->

</div>



<script src="__ROOT__/Application/Home/View/default/assets/js/jquery.min.js"></script>

<script src="__ROOT__/Application/Home/View/default/assets/js/amazeui.min.js"></script>
<script src="__ROOT__/Application/Home/View/default/assets/js/app.js"></script>
</body>
</html>
